package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 新签合同对象 project_contract
 * 
 * @author xuliang
 * @date 2024-04-12
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
public class Contract extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long id;

    @ExcelProperty(value = "序号")
    @ColumnWidth(8)
    private Long no;

    /** 地区 */
    @Excel(name = "地区")
    private Integer areaId;

    /** 合同项目名称 */
    @Excel(name = "合同项目名称")
    private String projectName;

    /** 合同编号 */
    @Excel(name = "合同编号")
    private String projectCode;

    /** 建设单位（客户名称） */
    @Excel(name = "建设单位", readConverterExp = "客=户名称")
    private String constructName;

    /** 签约合同价 */
    @Excel(name = "签约合同价")
    private BigDecimal contract;

    /** 签约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "签约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date contractTime;

    /** 项目所在地（客户所在地） */
    @Excel(name = "项目所在地", readConverterExp = "客=户所在地")
    private String contractIn;

}
